package com.walle.userservice.dao;

import com.walle.common.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * @author zhangjiapeng
 * @Package com.walle.userservice.dao
 * @Description: ${todo}
 * @date 2018/12/26 16:09
 */
@Mapper
@Component
public interface UserInfoDao {

    UserInfo getById(@Param("userId") Long userId);

    UserInfo getByUserName(@Param("username") String username);

    int insert(UserInfo userInfo);
}
